package com.tracesystem.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author JMOCOK
 * @description 缺陷参数
 * @date 2022/3/24  14:21
 */
@ApiModel("缺陷参数")
@Data
public class IssueForm {
    @ApiModelProperty("项目id")
    private Integer projectId;
    @ApiModelProperty("父级缺陷id")
    private Integer parentIssueId;
    @ApiModelProperty("缺陷名")
    @NotNull
    private String issueName;
    @ApiModelProperty("缺陷描述")
    @NotBlank
    private String issueDesc;
    @ApiModelProperty("缺陷分类")
    @NotNull
    private String issueType;
    @ApiModelProperty("严重程度")
    @NotNull
    private String issueSeverity;
    @ApiModelProperty("优先级")
    @NotNull
    private String issuePriority;
    @ApiModelProperty("预计开始日期")
    @NotNull
    private LocalDate planStartTime;
    @ApiModelProperty("预计结束时间")
    @NotNull
    private LocalDate planEndTime;
    @ApiModelProperty("预计工时")
    @Min(0)
    private BigDecimal planWorkHours;
    @ApiModelProperty("完成要求")
    @NotBlank
    private String doneCondition;
    @ApiModelProperty("附件描述")
    private String attachDesc;
    @ApiModelProperty("原文件名")
    private String attachFile;
    @ApiModelProperty("文件大小")
    private BigDecimal fileSize;
    @ApiModelProperty("文件类型")
    private String mimeType;
    @ApiModelProperty("是否是图片")
    private Integer isPic;
    @ApiModelProperty("文件状态")
    private String logState;
    @ApiModelProperty("保存文件名")
    private String fileUrl;

}
